<li id='type_of_company_<?=$i?>'  class='13'>
<select name='type_of_company<?=$i?>' id='type_of_company<?=$i?>' class='full_select' style="width:auto;">
<?
foreach($data as $key=>$val){
?>
  <option value="<?=$val->type_of_company_id?>" <?if($val->type_of_company_id==$s) echo "selected";?>><?=$val->value?></option>
<?
}
?>
</select>
</li>